<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {
    $router->post('classList','AdminUploadController@classList');
    $router->get('/', 'HomeController@index');
    $router->post('upload', 'AbductionExplainController@upload');
    $router->resource('admin_member', AdminMemberController::class);
    $router->resource('curation', CurationController::class);
    $router->resource('admin_class', AdminClassController::class);
    $router->resource('admin_upload', AdminUploadController::class);
    $router->resource('abduction_explain', AbductionExplainController::class);
    $router->resource('abduction_film', AbductionFilmController::class);
    $router->resource('abduction_project', AbductionProjectController::class);
    $router->resource('abduction_slide', AbductionSlideController::class);
    $router->resource('abduction_contact', AbductionContactController::class);//联系我们
    $router->resource('tool_quote', ToolQuoteController::class);//工具与资源-引用
    $router->resource('bar', BarController::class);//顶部底部导航栏管理
    $router->resource('navigation', NavigationController::class);//首页导航栏树管理
//    $router->any('admin_member', 'AdminMemberController@index');

});
